
package com.huaweicloud.saaslanding.install.properties;

import static com.huaweicloud.saaslanding.install.constant.ModelConstant.ELB_PREFIX;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 功能描述
 *
 * @since 2022-03-24
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Validated
@ConfigurationProperties(prefix = ELB_PREFIX)
public class Elb {
    /**
     * ELB实例的id
     */
    @NotEmpty(message = "ELB实例的id(elb.elbId)不能为空")
    private String elbId;

    /**
     * ELB实例的公网IP
     */
    @NotEmpty(message = "ELB实例的公网IP(elb.elbEip)不能为空")
    private String elbEip;

    /**
     * ELB实例的IP
     */
    @NotEmpty(message = "定ELB实例的IP(elb.elbIp)不能为空")
    private String elbIp;

    /**
     * elb型号
     */
    @NotEmpty(message = "ELB实例类型(elb.elbType)不能为空")
    private String elbType;

}
